package Arbore;

public class ArboreFunctional {
    private Nod radacina;

    public ArboreFunctional(Nod radacina){
        this.radacina=radacina;
    }

    public double calculezValoare(double x) {
        radacina.x=x;
        return radacina.calcul();
    }

    @Override
    public String toString(){
        return radacina.toString();
    }

    public String derivata(){
        return radacina.derivare();
    }

}
